package com.rybbaby.tss.front.tssMemberReturnPremium.dao.imp;

import com.rybbaby.tss.core.web.dao.imp.GenericDao;
import com.rybbaby.tss.front.tssMemberReturnPremium.dao.IViewRefundDetailsDao;
import com.rybbaby.tss.front.tssMemberReturnPremium.entity.ViewRefundDetails;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description 会员退费记录表数据库操作实现
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:14:02
 */
@Repository
public class ViewRefundDetailsDaoImp extends GenericDao<ViewRefundDetails> implements IViewRefundDetailsDao {


    @Override
    public List<ViewRefundDetails> viewRefundDetailsList(String memberId) throws Exception {
        String sql = "select * from view_refund_details where memberId = ? ORDER BY updateTime ASC";
        List<ViewRefundDetails> listBySql = this.findListBySql(sql, ViewRefundDetails.class, memberId);
        return listBySql;
    }
}
